﻿using agsXMPP;
using sharpxbot.Plugins.Context;

namespace sharpxbot.Core.Plugins.Muc
{
    public class KickCommand : IMucCommand
    {
        public Jid MucJid { get; set; }

        public string Reason { get; set; }

        #region IMucCommand Members

        public MucCommandEnum CommandType { get; set; }

        public void Execute(IPluginContext context)
        {
            context.GroupChats.KickUser(MucJid.Bare, MucJid.Resource, Reason);
        }

        #endregion
    }
}
